package com.yj.provider.controller;

import com.yj.provider.exception.BusException;
import com.yj.provider.exception.ExceEnum;
import com.yj.provider.response.ResultResponse;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
public class SampleController {


    @GetMapping("/get")
    public ResultResponse get(){

        try {
            int i = 1/0;
        } catch (BusException e) {
            e.printStackTrace();
            throw new BusException();
        }


        return ResultResponse.success();
    }

}
